import request from '@/utils/request'

// 查询组卷列表
export function listPaper(query) {
  return request({
    url: '/system/paper/list',
    method: 'get',
    params: query
  })
}

// 查询组卷题列表
export function listQuestion(query) {
  return request({
    url: '/system/question/list',
    method: 'get',
    params: query
  })
}

// 查询组卷题详细
export function getQuestion(id) {
  return request({
    url: '/system/question/' + id,
    method: 'get'
  })
}

// 新增组卷题
export function addQuestion(data) {
  return request({
    url: '/system/question',
    method: 'post',
    data: data
  })
}

// 修改组卷题
export function updateQuestion(data) {
  return request({
    url: '/system/question',
    method: 'put',
    data: data
  })
}

// 删除组卷题
export function delQuestion(id) {
  return request({
    url: '/system/question/' + id,
    method: 'delete'
  })
}

// 导出组卷题
export function exportQuestion(query) {
  return request({
    url: '/system/question/export',
    method: 'get',
    params: query
  })
}

// 查询[题库]列表
export function listquestionStore(query) {
  return request({
    url: '/system/questionStore/list',
    method: 'get',
    params: query
  })
}

// 查询[题库]详细
export function getquestionStore(id) {
  return request({
    url: '/system/questionStore/' + id,
    method: 'get'
  })
}